//保存后端角色相关的接口

import http from '../../http'
import { type SysRole, type RoleListParam } from './RoleModel'

//新增角色
export const addApi = (param: SysRole) => {
    return http.post('/api/role',param)
}

//查询角色列表(分页)
export const getListApi = (param: RoleListParam) => {
    return http.get('/api/role/list',param)
}